package com.ce.pms.common.util;

import java.io.InputStream;
import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author daibiao
 */
public class PMSProperty {

	static Log log = LogFactory.getLog(PMSProperty.class);

	static Properties properties = new Properties();

	static{
		try {
			InputStream in = PMSProperty.class.getResourceAsStream("../../../../resource.properties");
			properties.load(in);
		} catch (Exception e) {
			e.printStackTrace();
			log.error("没有找到资源文件resource.properties");
		}
	}

	public static String getProperty(String key){
		return properties.getProperty(key);
	}

}
